package com.uranus.common.VO.paging;

/**
 *  分页请求对象
 */
public class

Paginator {
    /**
     * 每页显示多少条记录
     */
    private int pageSize = 20;
    /**
     * 当前页码
     */
    private int page = 1;
    /**
     * 排序
     */
    private String sort ;


    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize < 1 ? 20 : pageSize;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page =  page < 1 ? 1 : page;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
